<template>
  <div class="container">
    <ColumnList :list="list" />
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import 'bootstrap/dist/css/bootstrap.min.css'
import ColumnList, { ColumnListProps } from './components/ColumnList.vue'
const testData: ColumnListProps[] = [
  {
    id: 1,
    title: '标题1',
    avatar: 'https://avatars0.githubusercontent.com/u/8186664?s=460&v=4',
    description: '描述1'
  },
  {
    id: 2,
    title: '标题2',
    avatar: 'https://avatars0.githubusercontent.com/u/8186664?s=460&v=4',
    description: '描述2'
  },
  {
    id: 3,
    title: '标题3',
    avatar: 'https://avatars0.githubusercontent.com/u/8186664?s=460&v=4',
    description: '描述3'
  },
  {
    id: 4,
    title: '标题4',
    avatar: 'https://avatars0.githubusercontent.com/u/8186664?s=460&v=4',
    description: '描述4'
  },
  {
    id: 5,
    title: '标题5',
    avatar: 'https://avatars0.githubusercontent.com/u/8186664?s=460&v=4',
    description: '描述5'
  },
  {
    id: 6,
    title: '标题6',
    avatar: 'https://avatars0.githubusercontent.com/u/8186664?s=460&v=4',
    description: '描述6'
  },
  {
    id: 7,
    title: '标题7',
    avatar: 'https://avatars0.githubusercontent.com/u/8186664?s=460&v=4',
    description: '描述7'
  }
]
export default defineComponent({
  name: 'App',
  components: {
    ColumnList
  },
  setup () {
    return {
      list: testData
    }
  }
})
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
